NDepend.API Documentation
ToSeconds(Nullable<Int32>) Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class > ToSeconds Method : ToSeconds(Nullable<Int32>) Method
The number of seconds.
Gets a System.TimeSpan value, with total number of seconds equals to nullableNbSeconds.
Syntax
[Extension()]
public static TimeSpan ToSeconds( 
   Nullable<int> nullableNbSeconds
)

Parameters

nullableNbSeconds
The number of seconds.
Remarks
if nullableNbSeconds is null, System.TimeSpan.System.TimeSpan.Zero is returned.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members
Overload List